//
//  DistributionTypeViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/27.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "DistributionTypeViewController.h"
#import "DistributionViewModel.h"

@interface DistributionTypeViewController ()
@property (nonatomic,strong) DistributionViewModel * disViewModel;
@end

@implementation DistributionTypeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"选择配送方式";
    self.disViewModel = [[DistributionViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    kWeakSelf(self);
    self.disViewModel.BlockSelectRow = ^(FillExpressModel * _Nonnull model) {
        [weakself didSelectRow:model];
    };
}

- (void)didSelectRow:(FillExpressModel *)model
{
    if (self.BlockSelectRow) {
        self.BlockSelectRow(model);
    }
    [self.navigationController popViewControllerAnimated:YES];
}

@end
